<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/commons.jsp" %>
<html>
	<head>
		<title>我的首页</title>
		<link rel="stylesheet" type="text/css" href="${ctx }/css/style.css" />
		<link rel="stylesheet" type="text/css" href="${ctx }/css/thickbox.css" />
		<link rel="stylesheet" type="text/css" href="${ctx }/css/uploadify.css" media="screen" />
		<script type="text/javascript" src="${ctx }/js/jquery.js"></script>
		<script type="text/javascript" src="${ctx }/js/weibo.js"></script>
		<script type="text/javascript" src="${ctx }/js/thickbox.js"></script>		
		<script type="text/javascript" src="${ctx }/js/swfobject.js"></script>
		<script type="text/javascript" src="${ctx }/js/jquery.uploadify.v2.1.4.js"></script>
	</head>
	<body>
		<span id="ctx" title="${ctx }"></span>
		<c:if test="${sessionScope.user eq null}">
			<c:redirect url="/index.jsp" />
		</c:if>
		<div id="wrap">
			<div id="global_header">
				<div class="content">
					<a href="${ctx }/${sessionScope.user.id }">首页</a>
					<a href="${ctx }/${sessionScope.user.id }/profile">我的微博</a>
					<a href="${ctx }/logout">退出</a>
					<form action="${ctx }/search" method="post">
							<input type="text" name="usernick" />
							<input type="submit" value="搜索" />
					</form>
				</div>
			</div>
			<div id="container">
				<div id="main">
					<div id="content">
						<div id="left">
							<div class="avatar">
								<img src="${ctx }/avatar/${sessionScope.user.avatar }" width="50" />${sessionScope.user.nick }
							</div>
						</div>
						<div id="center">
							center
						</div>
						<div id="right">
							right...
						</div>
						<div class="clear"></div>
					</div>
				</div>
			</div>
			<div id="global_footer">
				footer...
			</div>
		</div>
	</body>
</html>
